<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>
<script type="text/javascript">
description("Reload after WebSocket creation should not cause a crash.");

window.jsTestIsAsync = true;

document.iframeFinished = function()
{
    testPassed("Test finished.");
    finishJSTest();
};

var iframeElement = document.createElement("iframe");
iframeElement.src = "resources/worker-reload-iframe.html";
document.body.appendChild(iframeElement);
testPassed("Inserted <iframe>.");
</script>
</body>
</html>
